package com.stu.common.threadlocal;

import com.stu.entity.SysUser;


public class SysUserThreadLocal {
    static ThreadLocal<SysUser> userThreadLocal = new ThreadLocal<>();

    public static void put(SysUser isFlag) {
        userThreadLocal.set(isFlag);
    }

    public static SysUser get() {
        return userThreadLocal.get();
    }

    public static void remove() {
        userThreadLocal.remove();
    }
}
